//
//  MFAPMBaseModel.m
//  MFAPMManager
//
//  Created by zhang liyu on 2019/5/26.
//

#import "MFAPMBaseModel.h"

#import "MFAPMDataFactory.h"
#import "MFAPMUtility.h"

@implementation MFAPMBaseModel

#pragma mark - Life Circle

- (instancetype)init{
    self = [super init];
    if(self){
        [self configActions];
    }
    return self;
}

- (void)configActions{
    
    //初始化Model的公共属性

    //初始时将对应的事件类型设定为-1;
    _eventType = -1;
    //精确时间戳到毫秒
    _timestamp = [[NSDate date] timeIntervalSince1970] * 1000;
    //初始时将对应的事件序号设定为-1;
    _serialNum = -1;
    _region = @"";
    _network = [[MFAPMUtility currentNetworkType] integerValue];
    //初始时将运营商编码设定为-1
    _networkOperator = -1;
    _userId = [MFAPMDataFactory userID];
}

@end
